﻿using System.Data;
using System.Xml.Serialization;

namespace uTILLIty.ADExtractor.Core.Exporters.Sql
{
	public class SqlExporterConfiguration
	{
		public SqlExporterConfiguration()
		{
			ProviderName = "SqlClient Data Provider";
			CommandType = CommandType.Text;
		}

		[XmlAttribute("continueOnError")]
		public bool ContinueOnError { get; set; }

		[XmlAttribute("commandType")]
		public CommandType CommandType { get; set; }

		[XmlAttribute("providerName")]
		public string ProviderName { get; set; }

		public string ConnectionString { get; set; }

		public string CommandText { get; set; }

		[XmlAttribute("suppressSqlInfoMessages")]
		public bool SuppressSqlInfoMessages { get; set; }
	}
}